﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Technoera.Common.QueryModel.Basic
{
    public class ScalarBetweenPropertyCriterion : ScalarCriterion
    {
        /// <summary>
        /// Create a new 'between' criterion for a scalar property.
        /// </summary>
        /// <param name="propertyPath">The path of the child property (i.e. Description or WrittenBy.FullName).</param>
        /// <param name="value1">The scalar first value for the parameter.</param>
        /// <param name="value2">The scalar second value for the parameter.</param>
        public ScalarBetweenPropertyCriterion(string propertyPath, object value1, object value2)
        {
            PropertyPath = propertyPath;
            Value1 = value1;
            Value2 = value2;
        }

        public object Value1 { get; set; }
        public object Value2 { get; set; }

    }
}
